package com.rs.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.rs.dao.ZhOnBusinessMapper;
import com.rs.model.ZhOnBusiness;
import com.rs.service.ZhOnBusinessService;

@Service
public class ZhOnBusinessServiceImpl implements ZhOnBusinessService {

	
	@Autowired
	private ZhOnBusinessMapper ZhOnBusinessdao;
	
	@Override
	public ZhOnBusiness selectByPrimaryKey(Integer onId) {
		return ZhOnBusinessdao.selectByPrimaryKey(onId);
	}

	@Override
	public int updateOnBusinessAudit(ZhOnBusiness record) {
		return ZhOnBusinessdao.updateOnBusinessAudit(record);
	}

	@Override
	public Page<ZhOnBusiness> selectOnBusinessAudit(Integer onAudit) {
		return ZhOnBusinessdao.selectOnBusinessAudit(onAudit);
	}

	@Override
	public Page<ZhOnBusiness> selectOneselfOnBusinessAudit(ZhOnBusiness record) {
		PageHelper.startPage(record.getPageNum(),10);
		return ZhOnBusinessdao.selectOneselfOnBusinessAudit(record);
	}

	@Override
	public Page<ZhOnBusiness> selectOnBusinessAudits(Integer pagenum, Integer onAudit) {
		PageHelper.startPage(pagenum,10);
		return ZhOnBusinessdao.selectOnBusinessAudit(onAudit);
	}

	@Override
	public Page<ZhOnBusiness> selectOneselfOnBusinessAuditByUname(Integer pagenum, ZhOnBusiness record) {
		PageHelper.startPage(pagenum,10);
		return ZhOnBusinessdao.selectOneselfOnBusinessAuditByUname(record);
	}

}
